<#include "../common/head.ftl" />
<#include "../common/page.ftl" />
<!DOCTYPE html>
<html>
	<@comme_head />
	<@comme_table/>
	<head lang="en">
	    <meta charset="UTF-8">
	    <title>全国信息统计列表</title>
	</head>
	 <script>
  function search(){
    var updatetime =  $("#updatetime").val();
    var ytime= /^(\d{4})-(0\d{1}|1[0-2])-(0\d{1}|[12]\d{1}|3[01])$/; 
    if(ytime.test(updatetime)){
         window.location.href = "/manager/manager_allpeople_list?update_time="+updatetime;
    }else{
        alert("时间格式不正确!");
    }
  }
 </script>
	<body>
		<@comme_header />
		<div class="main clearfix" id="main">
			<@comme_daohang />
		    <div class="right-content">
		        <div class="content">
		            <div id="container">
		                <div class="box-1">
		                    <input type="text" placeholder="搜索" class="search" id="updatetime" value="${update_time?if_exists}">
		                    <b class="fangdajing" onclick="search()"></b>
		                </div>
		                <table class="zebra">
		                    <caption>全国数量统计</caption>
		                    <thead>
		                    <tr>
		                        <th>园所数量</th>
		                        <th>老师数量</th>
		                        <th>家长（学生）数量</th>
		                        <th>点卡使用次数</th>
		                        <th>点卡剩余次数</th>
		                        <th>创建时间</th>
		                        <th>更新时间</th>
		                    </tr>
		                    </thead>
		                    <tbody>
		                    <#if manager_allPeople_list?size != 0>
			                    <#list manager_allPeople_list as allpeople>
				                    <tr>
				                        <td>${allpeople.garden_sum!}</td>
				                        <td>${allpeople.teacher_sum!}</td>
				                        <td>${allpeople.student_sum!}</td>
				                        <td>${allpeople.use_card!}</td>
				                        <td>${allpeople.last_card!}</td>
				                        <td>${allpeople.create_time!}</td>
				                        <td>${allpeople.update_time!}</td>
				                    </tr>
			                    </#list>
			            <#else>
		                	<tr>
		                        <td colspan="7">没有相关数据</td>
		                    </tr>
		                </#if>
		                    	<tr>
		                    		<td colspan="7">
		                    			<div class="pages">
											<@page pageid="" url="/manager/manager_allpeople_list?currentpageno=" />
										</div>
		                    		</td>
		                    	</tr>
		                    </tbody>
		                </table>
		            </div>
		        </div>
		    </div>
		</div>
	</body>
</html>